package com.gemini.mapper;

import com.gemini.pojo.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

public interface UserMapper {

    @Select("select * from tb_user where username=#{username} and password=#{password}")
    User selectUser(User user);

    @Insert("insert into tb_user value (null,#{username},#{password})")
    void addUser(User user);

    @Select("select * from tb_user where username=#{username}")
    User selectUserByUsername(String username);
}
